home *** CD-ROM | disk | FTP | other *** search
Wrap
TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt((((3333)))) TTTTkkkk (((( )))) TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt((((3333)))) _________________________________________________________________ NNNNAAAAMMMMEEEE Tk_GeometryRequest, Tk_SetInternalBorder - specify desired geometry or internal border for a window SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>> TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt(_t_k_w_i_n, _r_e_q_W_i_d_t_h, _r_e_q_H_e_i_g_h_t) TTTTkkkk____SSSSeeeettttIIIInnnntttteeeerrrrnnnnaaaallllBBBBoooorrrrddddeeeerrrr(_t_k_w_i_n, _w_i_d_t_h) AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS Tk_Window _t_k_w_i_n (in) Window for which geometry is being requested. int _r_e_q_W_i_d_t_h (in) Desired width for _t_k_w_i_n, in pixel units. int _r_e_q_H_e_i_g_h_t (in) Desired height for _t_k_w_i_n, in pixel units. int _w_i_d_t_h (in) Space to leave for internal border for _t_k_w_i_n, in pixel units. _________________________________________________________________ DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt is called by widget code to indicate its preference for the dimensions of a particular window. The arguments to TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt are made available to the geometry manager for the window, which then decides on the actual geometry for the window. Although geometry managers generally try to satisfy requests made to TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt, there is no guarantee that this will always be possible. Widget code should not assume that a geometry request will be satisfied until it receives a CCCCoooonnnnffffiiiigggguuuurrrreeeeNNNNoooottttiiiiffffyyyy event indicating that the geometry change has occurred. Widget code should never call procedures like TTTTkkkk____RRRReeeessssiiiizzzzeeeeWWWWiiiinnnnddddoooowwww directly. Instead, it should invoke TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt and leave the final geometry decisions to the geometry manager. If _t_k_w_i_n is a top-level window, then the geometry information will be passed to the window manager using the standard ICCCM protocol. TTTTkkkk____SSSSeeeettttIIIInnnntttteeeerrrrnnnnaaaallllBBBBoooorrrrddddeeeerrrr is called by widget code to indicate that the widget has an internal border. This means that the Page 1 (printed 7/23/95) TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt((((3333)))) TTTTkkkk (((( )))) TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt((((3333)))) widget draws a decorative border inside the window instead of using the standard X borders, which are external to the window's area. For example, internal borders are used to draw 3-D effects. _W_i_d_t_h specifies the width of the border in pixels. Geometry managers will use this information to avoid placing any children of _t_k_w_i_n overlapping the outermost _w_i_d_t_h pixels of _t_k_w_i_n's area. The information specified in calls to TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt and TTTTkkkk____SSSSeeeettttIIIInnnntttteeeerrrrnnnnaaaallllBBBBoooorrrrddddeeeerrrr can be retrieved using the macros TTTTkkkk____RRRReeeeqqqqWWWWiiiiddddtttthhhh, TTTTkkkk____RRRReeeeqqqqHHHHeeeeiiiigggghhhhtttt, and TTTTkkkk____IIIInnnntttteeeerrrrnnnnaaaallllBBBBoooorrrrddddeeeerrrrWWWWiiiiddddtttthhhh. See the TTTTkkkk____WWWWiiiinnnnddddoooowwwwIIIIdddd manual entry for details. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS geometry, request Page 2 (printed 7/23/95)